# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=tikzit
pkgver=2.1.6
pkgrel=0
pkgdesc="Allows the creation and modification of TeX diagrams written using the pgf/TikZ macro library"
url="https://tikzit.github.io"
arch="all"
license="GPL-3.0-only"
depends="hicolor-icon-theme"
makedepends="qt5-qtbase-dev flex-dev poppler-dev poppler-qt5-dev bison"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tikzit/tikzit/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no upstream checks

build() {
	qmake-qt5 PREFIX=/usr \
		QMAKE_CFLAGS="$CFLAGS" \
		QMAKE_CXXFLAGS="$CXXFLAGS" -r
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="
e93249d1206f8af1c54a5a73aee0958dda75f21ef8c9a1301826f37c7bcc8764ff9d00b9acfe46ed98f30385f212138b6c93270b7d7fbe2b0efbec977945bd73  tikzit-2.1.6.tar.gz
"
